// mircoApp/share_chain/component/share_chan_list.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    plugnNmae: {
      type: String,
      value: ""
    },
    summary: {
      type: Object,
      value: []
    },
    listData: {
      type: Array,
      value: []
    },
    total: {
      type: Number,
      value: 0
    },
    inquire_act: {
      type: String,
      value: ""
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    makePhone(e) {
      let {
        phone
      } = e.currentTarget.dataset;
      wx.makePhoneCall({
        phoneNumber: phone
      })
    },
    clickTap(e) {
      let {
        item,
        index
      } = e.currentTarget.dataset;
      this.triggerEvent("updateList", {
        item,
        index
      })
    }
  }
})